home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Universal Viewer / UniversalViewer.exe / Plugins / Syn2 / HL / Oberon.lcf < prev    next >
Encoding:
Text File  |  2007-12-12  |  5.3 KB  |  237 lines

  1. object SyntAnal17: TLibSyntAnalyzer
  2.   Formats = <
  3.     item
  4.       DisplayName = 'Default'
  5.       Font.Charset = DEFAULT_CHARSET
  6.       Font.Color = clWindowText
  7.       Font.Height = -13
  8.       Font.Name = 'Courier New'
  9.       Font.Style = []
  10.       FormatType = ftCustomFont
  11.     end
  12.     item
  13.       DisplayName = 'Marked block'
  14.       Font.Charset = DEFAULT_CHARSET
  15.       Font.Color = clHighlightText
  16.       Font.Height = -13
  17.       Font.Name = 'Courier New'
  18.       Font.Style = []
  19.       BgColor = clHighlight
  20.       FormatType = ftColor
  21.     end
  22.     item
  23.       DisplayName = 'Symbol'
  24.       Font.Charset = DEFAULT_CHARSET
  25.       Font.Color = clMaroon
  26.       Font.Height = -13
  27.       Font.Name = 'Courier New'
  28.       Font.Style = [fsBold]
  29.     end
  30.     item
  31.       DisplayName = 'Number'
  32.       Font.Charset = DEFAULT_CHARSET
  33.       Font.Color = clNavy
  34.       Font.Height = -13
  35.       Font.Name = 'Courier New'
  36.       Font.Style = [fsBold]
  37.     end
  38.     item
  39.       DisplayName = 'String'
  40.       Font.Charset = DEFAULT_CHARSET
  41.       Font.Color = clBlue
  42.       Font.Height = -13
  43.       Font.Name = 'Courier New'
  44.       Font.Style = []
  45.     end
  46.     item
  47.       DisplayName = 'Identifier'
  48.       Font.Charset = DEFAULT_CHARSET
  49.       Font.Color = clWindowText
  50.       Font.Height = -13
  51.       Font.Name = 'Courier New'
  52.       Font.Style = []
  53.     end
  54.     item
  55.       DisplayName = 'Reserved word'
  56.       Font.Charset = DEFAULT_CHARSET
  57.       Font.Color = clWindowText
  58.       Font.Height = -13
  59.       Font.Name = 'Courier New'
  60.       Font.Style = [fsBold]
  61.     end
  62.     item
  63.       DisplayName = 'Comment'
  64.       Font.Charset = DEFAULT_CHARSET
  65.       Font.Color = clRed
  66.       Font.Height = -13
  67.       Font.Name = 'Courier New'
  68.       Font.Style = [fsBold]
  69.     end>
  70.   TokenRules = <
  71.     item
  72.       DisplayName = 'Comment 1'
  73.       StyleName = 'Comment'
  74.       TokenType = 1
  75.       Expression = '(?s)\(\*.*?(\*\)|\Z)'
  76.       ColumnFrom = 0
  77.       ColumnTo = 0
  78.     end
  79.     item
  80.       DisplayName = 'Any name'
  81.       StyleName = 'Identifier'
  82.       TokenType = 2
  83.       Expression = '[a-z_]\w*'
  84.       ColumnFrom = 0
  85.       ColumnTo = 0
  86.     end
  87.     item
  88.       DisplayName = 'String'
  89.       StyleName = 'String'
  90.       TokenType = 4
  91.       Expression = '".*?("|$)'
  92.       ColumnFrom = 0
  93.       ColumnTo = 0
  94.     end
  95.     item
  96.       DisplayName = 'Float'
  97.       StyleName = 'Number'
  98.       TokenType = 6
  99.       Expression = '\d+ \.? \d+ e [\+\-]? \d+ |'#13#10'\d+ \. \d+'
  100.       ColumnFrom = 0
  101.       ColumnTo = 0
  102.     end
  103.     item
  104.       DisplayName = 'Integer'
  105.       StyleName = 'Number'
  106.       TokenType = 5
  107.       Expression = '\d+'
  108.       ColumnFrom = 0
  109.       ColumnTo = 0
  110.     end
  111.     item
  112.       DisplayName = 'Symbol'
  113.       StyleName = 'Symbol'
  114.       TokenType = 3
  115.       Expression = '[/\*,\.;:\(\)=<>\+\-\[\]]'
  116.       ColumnFrom = 0
  117.       ColumnTo = 0
  118.     end>
  119.   BlockRules = <
  120.     item
  121.       DisplayName = 'Key words'
  122.       StyleName = 'Reserved word'
  123.       BlockType = btTagDetect
  124.       ConditionList = <
  125.         item
  126.           TagList.Strings = (
  127.             'array'
  128.             'begin'
  129.             'case'
  130.             'const'
  131.             'div'
  132.             'do'
  133.             'else'
  134.             'elsif'
  135.             'end'
  136.             'exit'
  137.             'if'
  138.             'import'
  139.             'in'
  140.             'is'
  141.             'loop'
  142.             'mod'
  143.             'module'
  144.             'nil'
  145.             'of'
  146.             'or'
  147.             'pointer'
  148.             'procedure'
  149.             'record'
  150.             'repeat'
  151.             'return'
  152.             'then'
  153.             'to'
  154.             'type'
  155.             'until'
  156.             'var'
  157.             'while'
  158.             'with')
  159.           TokenTypes = 4
  160.           IgnoreCase = True
  161.         end>
  162.       HighlightPos = cpAny
  163.       IgnoreAsParent = False
  164.     end
  165.     item
  166.       DisplayName = 'procedure'
  167.       ConditionList = <
  168.         item
  169.           TagList.Strings = (
  170.             'procedure')
  171.           TokenTypes = 4
  172.           IgnoreCase = True
  173.         end>
  174.       NameFmt = '%s0 %s-1'
  175.       HighlightPos = cpAny
  176.       IgnoreAsParent = False
  177.     end
  178.     item
  179.       DisplayName = 'Begin'
  180.       ConditionList = <
  181.         item
  182.           TagList.Strings = (
  183.             'begin'
  184.             'if'
  185.             'while')
  186.           TokenTypes = 4
  187.           IgnoreCase = True
  188.         end>
  189.       BlockEnd = 'end'
  190.       DisplayInTree = False
  191.       HighlightPos = cpAny
  192.       IgnoreAsParent = False
  193.     end
  194.     item
  195.       DisplayName = 'end'
  196.       BlockType = btRangeEnd
  197.       ConditionList = <
  198.         item
  199.           TagList.Strings = (
  200.             'end')
  201.           TokenTypes = 4
  202.         end>
  203.       HighlightPos = cpAny
  204.       IgnoreAsParent = False
  205.     end
  206.     item
  207.       DisplayName = 'proc end'
  208.       BlockType = btRangeEnd
  209.       ConditionList = <
  210.         item
  211.           TagList.Strings = (
  212.             'end')
  213.           TokenTypes = 4
  214.           IgnoreCase = True
  215.         end>
  216.       BlockEnd = 'proc end'
  217.       HighlightPos = cpAny
  218.       IgnoreAsParent = False
  219.     end>
  220.   CodeTemplates = <>
  221.   SubAnalyzers = <>
  222.   TokenTypeNames.Strings = (
  223.     'Unknown'
  224.     'Comment'
  225.     'Identifier'
  226.     'Symbol'
  227.     'String'
  228.     'Integer const'
  229.     'Float const'
  230.     'Hex const'
  231.     'Char const'
  232.     'Preprocessor')
  233.   MarkedBlockStyle = 'Marked block'
  234.   DefaultStyleName = 'Default'
  235.   LexerName = 'Oberon'
  236. end
  237.